package api;

/**
 * @Author admin
 * @Date 2019/3/27 9:36
 */
public class Tests {
    public static void main(String[] args) {
        String s = new String("hello");
        System.out.println(s.getClass()+"@"+s.hashCode()+":"+s);
        s=s+"world";
        System.out.println(s.getClass()+"@"+s.hashCode()+":"+s);
        System.out.println("==============");
        StringBuffer sb1=new StringBuffer("hello");
        System.out.println(sb1.getClass()+"@"+sb1.hashCode()+":"+sb1);
        sb1=sb1.append('w');
        System.out.println(sb1.getClass()+"@"+sb1.hashCode()+":"+sb1);
    }
}
